Conditions | 1 |
Paths | 3 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | Amarkal.settings.fields = { |
||
16 | search: function(query) { |
||
17 | var matches = []; |
||
18 | |||
19 | this.$fields.each(function(){ |
||
20 | var $field = $(this), |
||
21 | title = $field.find('h3').text().toLowerCase(), |
||
22 | help = $field.find('.help-content').text(); |
||
23 | description = $field.find('.description').text(); |
||
24 | |||
25 | // Check query against the field's title |
||
26 | if(title.match(query) || description.match(query) || help.match(query)) { |
||
27 | matches.push($field); |
||
28 | } |
||
29 | }); |
||
30 | |||
31 | // Convert the matches array to a jQuery object |
||
32 | return $(matches).map(function(){return this.toArray();}); |
||
33 | }, |
||
34 | show: function($fields) { |
||
46 | }; |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.